const isProduction = process.env.NODE_ENV === 'production';

module.exports = {
	publicPath: '/',
	lintOnSave: true,
	productionSourceMap: false,
	parallel: require('os').cpus().length > 1,

	css: {
		extract: isProduction,
		sourceMap: false
	},

	devServer: {
		disableHostCheck: true,
		port: 9001,
		open: false,
		compress: false,
		overlay: {
			warnings: false,
			errors: true
		}
	}
};
